package com.clhbolg.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】业务对象 t_menu
 *
 * @author cailinhu
 * @date 2023-02-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MenuBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 菜单名
     */
    @NotBlank(message = "菜单名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 菜单路径
     */
    @NotBlank(message = "菜单路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String path;

    /**
     * 组件
     */
    @NotBlank(message = "组件不能为空", groups = { AddGroup.class, EditGroup.class })
    private String component;

    /**
     * 菜单icon
     */
    @NotBlank(message = "菜单icon不能为空", groups = { AddGroup.class, EditGroup.class })
    private String icon;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer orderNum;

    /**
     * 父id
     */
    @NotNull(message = "父id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 是否隐藏  0否1是
     */
    @NotNull(message = "是否隐藏  0否1是不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isHidden;


}
